FROM mcr.microsoft.com/dotnet/aspnet:6.0 as bookservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY todo.book.API/ /app
ENTRYPOINT ["dotnet", "todo.book.API.dll"]
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as userservice
WORKDIR /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY todo.user.API/ /app
ENTRYPOINT ["dotnet", "todo.user.API.dll"]